﻿using System;
using System.Linq;
using Catalog.CatalogItems;
using Catalog.CatalogTypes;
using Catalog.Enumerations;

namespace Catalog
{
    class Program
    {
        static void Main(string[] args)
        {
            // Add items to FilmCatalog
            FilmCatalog.AddNewItem(new Film("Breaking Bad", FilmGenre.Action, "POISON", new DateTime(2012, 1, 1), true));
            FilmCatalog.AddNewItem(new Film("Walking Dead", FilmGenre.ScienceFiction, "ZOMBIE", new DateTime(2011, 2, 13), true));
            FilmCatalog.AddNewItem(new Film("Prince of Persia", FilmGenre.Adventure, "PRINC", new DateTime(2009, 11, 11), false));

            // Add items to MusicCatalog
            MusicCatalog.AddNewItem(new Music("Scorpion", MusicGenre.Rock, "THE BEST", new DateTime(1980, 1, 1), true));

            // Add items to GameCatalog
            GameCatalog.AddNewItem(new Game("Counter-Strike", GameGenre.Action, "Killers", new DateTime(1996, 2, 13), false));

            // Print items by catalogs
            Console.WriteLine(FilmCatalog.ShowAllFilms());
            Console.WriteLine(GameCatalog.ShowAllFilms());
            Console.WriteLine(MusicCatalog.ShowAllFilms());
            Console.WriteLine(Catalog.ShowAllItems());

            // ...
            // Test Renter functionality
            // ...

            Renter renter = new Renter("Ivan", "Varna", "123456789", "TrollFace.jpg");

            renter.Rent(FilmCatalog.GetByName("Breaking Bad"));

            Console.WriteLine(renter);


            //foreach (var item in renter.RentedItems)
            //{
            //    Console.WriteLine(item);
            //}
        }
    }
}